package com.txts.road.app.event.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.txts.road.app.event.model.entity.EventNewsEntity;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.txts.road.app.event.model.query.EventNewsQuery;
import com.txts.road.app.event.model.vo.EventNewsVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 赛事新闻Mapper接口
 *
 * @author baoyr
 * @since 2025-07-17 10:47
 */
@Mapper
public interface EventNewsMapper extends BaseMapper<EventNewsEntity> {

    /**
     * 获取赛事新闻分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<EventNewsVO>} 赛事新闻分页列表
     */
    Page<EventNewsVO> getEventNewsPage(Page<EventNewsVO> page, EventNewsQuery queryParams);

}
